\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{myfonts}[2023-11-12 v1.0 for myself]

\RequirePackage{xeCJKfntef}
%%英文字体
%\setmainfont{DejaVu Serif}
%\setmainfont{TeX Gyre Pagella}
\setmainfont{Noto Serif Light}
\setsansfont{DejaVu Sans}
\setmonofont{DejaVu Sans Mono}
%%数学字体
%\RequirePackage{mathspec}
%\xeCJKsetup{CJKmath=true}
%\setCJKmathfont{FZKai-Z03} 

%%中文字体
    \setCJKmainfont[AutoFakeBold,AutoFakeSlant]{FZFangSong-Z02}
    %\setCJKmainfont[AutoFakeBold,AutoFakeSlant]{HarmonyOS Sans SC}
    \setCJKsansfont[AutoFakeBold,AutoFakeSlant]{FZHei-B01}
    \setCJKmonofont[AutoFakeBold,AutoFakeSlant]{FZShuSong-Z01}
    \setCJKfamilyfont{zhsong}[AutoFakeBold,AutoFakeSlant]{FZShuSong-Z01}
    \setCJKfamilyfont{zhhei}[AutoFakeBold,AutoFakeSlant]{FZHei-B01}
    \setCJKfamilyfont{zhkai}[AutoFakeBold,AutoFakeSlant]{FZKai-Z03}
    \setCJKfamilyfont{zhfs}[AutoFakeBold,AutoFakeSlant]{FZFangSong-Z02}
    \newcommand*{\songti}{\CJKfamily{zhsong}}% 宋体
    \newcommand*{\heiti}{\CJKfamily{zhhei}}% 黑体
    \newcommand*{\kaishu}{\CJKfamily{zhkai}}% 楷体
    \newcommand*{\fangsong}{\CJKfamily{zhfs}}% 仿宋
    
    \setCJKfamilyfont{harmonyos}[AutoFakeBold,AutoFakeSlant]{HarmonyOS Sans SC}%手机默认字体
    \newcommand{\harmony}{\CJKfamily{harmonyos}}